# import library
import os
import numpy as np
import matplotlib.pyplot as plt

file_path = "./CodeLab/05_python/04_DataVisualization/test_data.txt"
y_mode    = 0
x_mode    = 0

# get data length
with open(file_path) as f :
    data_len = len(f.readlines())
    print("data len : ", data_len)

# data process
f = open(file_path)

data = []

for i in range(data_len):
    data_item = int(f.readline())
    data.append(data_item)

# draw
print("drawing")
plt.xlabel("N")
plt.ylabel("data")
plt.title("data visualization")
plt.plot(data)
plt.show()